<?php
/**
 * Created by PhpStorm.
 * User: ybjaa
 * Date: 2017/6/16
 * Time: 1:00
 */

namespace database\model;


use Illuminate\Database\Schema\Blueprint;

class users extends base
{
    public $table="users";


    protected function setFileds(Blueprint $table)
    {
        parent::setFileds($table);

        $table->string('userName', 30)->comment("用户名");
        $table->string('password', 255)->comment("密码（MD5加密）");
        $table->string('cardID', 20)->nullable()->comment("身份证号码");
        $table->string('mobilePhone', 20)->nullable()->comment("手机号");
        $table->string('email', 255)->nullable()->comment("邮箱");
        $table->string('remember_token', 255)->nullable()->comment("laravel特有");
    }

}